<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 解构数组
        let arr = [1,2,3];
        const [x,y,z] = arr;
        console.log(x,y,z);
        // 结构对象
        const person = {
            name:"wcj",
            age:24,
            gender:"男"
        }
        const {name:abc,age,gender} = person;
        console.log(abc,age,gender);
        // 表达式的扩展API，类似于Golang中的语法
        // 第一点：添加了类似于java的api,startsWith,endsWith，includeWith()等
        // 第二点：``符号避免字符串的拼接
    </script>
</body>
</html>